package com.ruoyi.business.service.impl;

import java.util.List;

import com.ruoyi.business.domain.TworkStuCommentDetail;
import com.ruoyi.business.mapper.TworkStuCommentDetailMapper;
import com.ruoyi.business.service.ITworkStuCommentDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 作业互评详细Service业务层处理
 * 
 * @author 最爱喝兽奶
 * @date 2022-08-14
 */
@Service
public class TworkStuCommentDetailServiceImpl implements ITworkStuCommentDetailService
{
    @Autowired
    private TworkStuCommentDetailMapper tworkStuCommentDetailMapper;

    /**
     * 查询作业互评详细
     * 
     * @param id 作业互评详细主键
     * @return 作业互评详细
     */
    @Override
    public TworkStuCommentDetail selectTworkStuCommentDetailById(Long id)
    {
        return tworkStuCommentDetailMapper.selectTworkStuCommentDetailById(id);
    }

    /**
     * 查询作业互评详细列表
     * 
     * @param tworkStuCommentDetail 作业互评详细
     * @return 作业互评详细
     */
    @Override
    public List<TworkStuCommentDetail> selectTworkStuCommentDetailList(TworkStuCommentDetail tworkStuCommentDetail)
    {
        return tworkStuCommentDetailMapper.selectTworkStuCommentDetailList(tworkStuCommentDetail);
    }

    /**
     * 新增作业互评详细
     * 
     * @param tworkStuCommentDetail 作业互评详细
     * @return 结果
     */
    @Override
    public int insertTworkStuCommentDetail(TworkStuCommentDetail tworkStuCommentDetail)
    {
        return tworkStuCommentDetailMapper.insertTworkStuCommentDetail(tworkStuCommentDetail);
    }

    /**
     * 修改作业互评详细
     * 
     * @param tworkStuCommentDetail 作业互评详细
     * @return 结果
     */
    @Override
    public int updateTworkStuCommentDetail(TworkStuCommentDetail tworkStuCommentDetail)
    {
        return tworkStuCommentDetailMapper.updateTworkStuCommentDetail(tworkStuCommentDetail);
    }

    /**
     * 批量删除作业互评详细
     * 
     * @param ids 需要删除的作业互评详细主键
     * @return 结果
     */
    @Override
    public int deleteTworkStuCommentDetailByIds(Long[] ids)
    {
        return tworkStuCommentDetailMapper.deleteTworkStuCommentDetailByIds(ids);
    }

    /**
     * 删除作业互评详细信息
     * 
     * @param id 作业互评详细主键
     * @return 结果
     */
    @Override
    public int deleteTworkStuCommentDetailById(Long id)
    {
        return tworkStuCommentDetailMapper.deleteTworkStuCommentDetailById(id);
    }
}
